<?php

class Controller extends Smarty
{



	public function __construct(){
	      $this->setTemplateDir('./views')
	       ->setConfigDir('./configs')
	       ->setCompileDir('./runtime/views_c')
	       ->setCacheDir('./runtime/caches');

			//配置 模板变量的定界符
			$this->left_delimiter = "<{";
			$this->right_delimiter = "}>";

			$this->caching = false;
			$this->cache_lifetime = 30;

	}
     public function __call($fun,$params){

        	header('HTTP/1.0 404 not found');
		  	header('Status: 404 not found');
		  	echo "<h1>404 NOT FOUND</h1>";
		  	exit;
     }	
}